package com.gameapplet.cash.service.Impl;

import com.gameapplet.cash.dao.IRedDao;
import com.gameapplet.cash.model.Red;
import com.gameapplet.cash.service.IRedService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("redService")
public class RedServiceImpl implements IRedService{
    @Resource(name = "redDao")
    IRedDao redDao;
    @Override
    public void insertRed(Red red) {
        redDao.insertRed(red);
    }

    @Override
    public Red selectRedByChallengeid(String challengeid) {
        return redDao.selectRedByChallengeid(challengeid);
    }

    @Override
    public void updateRed(Red red) {
        redDao.updateRed(red);
    }
}
